import React from 'react';
import { IRouteProps } from 'umi';
import DashboardIcon from '@mui/icons-material/Dashboard';
import CreditCardIcon from '@mui/icons-material/CreditCard';

export const routes: IRouteProps = [
  {
    component: '@/components/layout/index',
    routes: [
      {
        path: '/',
        extract: true,
        redirect: '/dashboard',
      },
      {
        path: '/dashboard',
        component: '@/pages/dashboard/index',
        title: '业务总览',
        icon: <DashboardIcon />,
      },
      {
        path: '/creditTransfer',
        component: '@/pages/credit-transfer/index',
        title: '应收账款',
        icon: <CreditCardIcon />,
      },
    ],
  },
];
